#include "entity.h"

namespace gecko
{

	//---------------------------------------------------------------------------------------------

	RTTI_IMPL(Entity, ISerialisable)

	//---------------------------------------------------------------------------------------------

	Entity::Entity()
		: m_isAlive(true)
	{
	}

	//---------------------------------------------------------------------------------------------

	Entity::~Entity()
	{
	}

	//---------------------------------------------------------------------------------------------

	void Entity::OnDeath()
	{
		m_isAlive = false;
	}

	//---------------------------------------------------------------------------------------------

	Entity::UpdateReturn Entity::Update(float /*dt*/)
	{
		if ( !m_isAlive )
		{
			return UpdateReturn_KillMe;
		}

		return UpdateReturn_KeepAlive;
	}

	//---------------------------------------------------------------------------------------------

}
